import request from '../utils/request.js';

//简单写法:
/*data:{
  username:''
  password:''
}
*/
export default function login(data){
/*
下面这个类似ajax的方案： this.$axios({
    url:'',
    method:'',
    header:'',
    data:data
})
*/
  return request({
    url:'/api/login?username='+data.username+'&password='+data.password,
    method:'get',
  })
}